import enUS from '@teld/q-components/lang/en-US.mjs';
import { merge } from 'lodash';

export default merge({}, enUS, {
  label: {
    true: 'Yes',
    false: 'No',
    changeNotify:
      'The query conditions have been changed, do you want to execute the query?',
    createNewFilter: 'Create New Filter',
    operateMore: 'More Operations',
    query: 'Query',
    t_filter: ' Filter',
  },
  dataGrid: {
    nameAsc: 'Name ↑',
    nameDesc: 'Name ↓',
    countAsc: 'Count ↑',
    countDesc: 'Count ↓',
    groupNullText: 'Empty',
    quickGroup: 'Group By',
    quickGroupBy: ' ',
    quickGroupChoice: 'Select',
    emptyText: 'no data',
    filterOperation: {
      contains: 'Contains',
      notContains: 'Does Not Contain',
      startsWith: 'Starts With',
      endsWith: 'Ends With',
      equal: 'Equal To',
      notEqual: 'Not Equal To',
      lessThan: 'Less Than',
      greaterThan: 'Greater Than',
      lessThanOrEqual: 'Less Than Or Equal To',
      greaterThanOrEqual: 'Greater Than Or Equal To',
      between: 'Between',
      default: 'Reset',
      isBlank: 'Is Blank',
      isNotBlank: 'Is Not Blank',
      startDate: 'Start Date',
      endDate: 'End Date',
      dateBetweenErrMsg: 'Start date should not be later than end date',
    },
    rowNumber: 'No.',
    sortAsc: 'Ascending Sort',
    sortDesc: 'Descending Sort',
    sortClear: 'Clear Sort',
    sortReset: 'Reset Sort',
    cancel: 'Cancel',
    confirm: 'Confirm',
    true: 'Yes',
    false: 'No',
    cmdColumn: {
      drawerTitle: 'Column Settings',
      helper:
        'Add or delete columns, drag and drop columns to adjust display order.',
      columns: 'Columns',
      sort: 'Sort',
      descTips: 'Descending',
      ascTips: 'Ascending',
      delete: 'Delete',
      drag: 'Drag',
      cancel: 'Cancel',
      confirm: 'Confirm',
      addColumn: 'Add',
      // resetSort: 'Reset Sort',
      // hideColumn: 'Hide Column',
      // setColumn: 'Column Settings',
      // choice: 'Please Choose',
    },
  },
  button: {
    more: 'More',
  },
  editTable: {
    deleteRow: 'Please select the row to delete',
    selectRow: 'Please select a row',
    tips: 'Warning',
    deleteConfirm: 'Confirm to delete selected rows?',
    operate: 'Operate',
    addRow: 'Add',
    deleteRows: 'Delet',
    save: 'Save',
    reset: 'Reset',
    saveSuccess: 'Successfully modified',
    order: 'SN',
    requiredMsg: 'Required cannot be empty',
  },
  uploader: {
    checkFileName:
      'Upload failed. Please check whether the file name contains special characters such as _, +, &, %, and slash',
    warning: 'Hint',
    success: 'Upload successful.',
    invalid: 'Upload failed, the uploaded content is invalid.',
    Extension:
      'Upload failed, unsupported resource type (file extension) or incorrect PathId format.',
    unknown:
      'Upload failed, please check if the file name contains special characters, or an unknown file extension.',
    maxLength:
      'Upload failed, the file name exceeds the maximum length or contains unsupported characters.',
    tips: 'Drag and drop the file to this area, or',
    add: 'Add Click',
    rules: 'Upload rules',
    maxSize: 'File size should not exceed',
    deleteList: 'Delete uploaded list',
    start: 'Start uploading',
    uploadList: 'Upload file list',
    deleteUploadList: 'Delete the list of uploaded files',
    filesType: 'File formats supported',
    SingleFileSize: 'The size of a single file should not exceed',
    noFileSize:
      'File size does not meet the requirements, please filter and try again.',
    noFileType:
      'File type does not meet the requirements, please filter and try again.',
    duplicate: 'Do not upload the same file repeatedly.',
  },
  popupFilter: {
    reset: 'Reset',
    confirm: 'Confirm',
    title: 'Filter',
    filter: 'Filter',
    defaultCondition: 'Condition',
    showStatistics: 'Statistics',
  },
  mixedView: {
    toolbar: {
      lvGroupfilter: 'Group',
      lvFilter: 'Filter',
      lvColumnsetting: 'Column Setting',
      lvExport: 'Export',
      lvExportlist: 'Export List',
    },
    tabs: {
      ListView: 'List View',
      // CardView: 'Card View',
      // TreeView: 'Tree View',
      // PivotView: 'Pivot View',
      ChartView: 'Chart View',
    },
    title: {
      nonPagination: 'Non-Pagination',
      pagination: 'Pagination',
      statistics: 'Statistics',
      userSelection: 'User Selection',
      press: 'Press',
      count: 'Count',
      sum: 'Sum',
      avg: 'Average',
      sortTypeDsName: 'Label',
      sortTypeDsValue: 'Value',
      dataSortList: 'Default Sort',
      dataSortListDes: 'Descending',
      dataSortListAsc: 'Ascending',
      pieChart: 'Pie Chart',
      histogram: 'Histogram',
      lineChart: 'Line Chart',
      barChart: 'Bar Chart',
      funnelChart: 'Funnel Chart',
      year: 'By Year',
      month: 'By Month',
      week: 'By Week',
      date: 'By Date',
      hour: 'By Hour',
      minute: 'By Minute',
      second: 'By Second',
      edit: 'Edit',
      sort: 'Sort',
      listView: 'List View',
      CardView: 'Card View',
      treeView: 'Tree View',
      pivotView: 'Pivot View',
      chartView: 'Chart View',
      refresh: 'Refresh',
      export: 'Export',
      filter: 'Filter',
      setColum: 'Column Settings',
      feildSet: 'Field Settings',
      chart: 'Chart',
      setChart: 'Chart Settings',
      chartType: 'Chart Type',
      configuration: 'Configuration Area',
      name: 'Name',
      groupBy: 'Group By',
    },
    placeholder: {
      chartName: 'Please fill in chart name',
      groupBy: 'Group By',
      selectGroupingBy: 'Please select grouping by',
      collectionMethod: 'Collection Method',
      polymerization: 'Polymerization',
      polymerizationMethod: 'Polymerization Method',
      sortMethod: 'Sort Method',
    },
    notify: {
      sameChartName: 'Name already exists',
      notError: 'Debugger, this is not an error',
      version: 'Current scheme format is version 1.0',
      delete: 'Are you sure you want to delete',
      required: 'Required validation',
      name: 'Name',
      repeat: 'Repeat',
      limtMessageConfirm:
        'There are ${count} records that meet the conditions, exceeding the upper limit of ${limitMax} set by the system. Are you sure you want to continue querying?',
      limtMessage:
        'The query result set has exceeded the upper limit of ${limitMax} set by the system, please narrow the query range or export data for statistical analysis.',
      limtLinkMessage: 'Click here for associated query',
    },
    config: {
      pageIndex: 'Page Index',
      pageSize: 'Page Size',
      queryFilter: 'Advanced Query Filter Conditions',
      sort: 'Advanced Query Sorting Conditions',
    },
    button: {
      cancel: 'Cancel',
      save: 'Save',
      delete: 'Delete',
      listViewFilterTips: 'Filter',
      listViewColumnTips: 'Column Settings',
      more: 'More Operation',
    },
    rowNumber: 'No.',
    sortAsc: 'Ascending Sort',
    sortDesc: 'Descending Sort',
    sortClear: 'Clear Sort',
    sortReset: 'Reset Sort',
    cancel: 'Cancel',
    confirm: 'Confirm',
    true: 'Yes',
    false: 'No',
    chartLoading: 'Loading...',
  },
  popupSearch: {
    btnSearch: 'Search',
    btnCancel: 'Cancel',
    history: 'History',
    confirmDeleteHistory: 'Are you sure you want to delete all history?',
    clear: 'Clear',
    totalCount: '{totalCount} total results',
    bottomLineText: 'No more',
  },
  prefabPagination: {
    jump: 'Go to',
    total: 'Total {{total}} items',
    pageSize: 'items/page',
  },
  quickFilter: {
    all: 'All',
    clear: 'Clear',
    TRUE: 'Yes',
    FALSE: 'No',
    dateFilterOpts: {
      today: '@Today',
      yesterday: '@Yesterday',
      week: '@This Week',
      last_week: '@Last Week',
      month: '@This Month',
      last_month: '@Last Month',
      year: '@This Year',
      last_year: '@Last Year',
    },
    placeholder: {
      pleaseEnter: 'Please enter ',
    },
  },
  ttable: {
    rowsPerPageLabel: 'Items',
    paginationLabel:
      'Showing ${firstRowIndex} to ${endRowIndex} of ${totalRowsNumber} rows',
  },
  tRepeat: {
    currentInTotal: 'current: ${current} total: ${totalCount}',
  },
  dateTime: {
    today: 'Today',
    current: 'Now',
    cancel: 'Cancel',
    confirm: 'Confirm',
    InvalidDate: 'Invalid date',
    OutRange: 'Date outside of supported range',
    to: 'To',
  },
  date: {
    days: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
    daysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
    months:
      'January_February_March_April_May_June_July_August_September_October_November_December'.split(
        '_',
      ),
    monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
    headerTitle: date =>
      new Intl.DateTimeFormat('en-US', {
        weekday: 'short',
        month: 'short',
        day: 'numeric',
      }).format(date),
    firstDayOfWeek: 0, // 0-6, 0 - Sunday, 1 Monday, ...
    format24h: false,
    pluralDay: 'day',
  },
  select: {
    noData: 'No data',
  },
  selectHelper: {
    etc: 'etc',
    checked: 'Checked',
    warning: 'Warning',
    maxCheckWarningMessage: 'You can only select up to {0} items',
    clearMessage: 'Are you sure you want to clear all selections?',
  },
  queryPlan: {
    viewBySub: 'Subscribe to view',
    notify: {
      success: 'Plan {0} succeeded',
      fail: 'Plan {0} failed, failure reason: {1}',
      shareSuccess: 'Share succeeded',
      planChange: 'The current plan has been changed',
      notifyIgnoreTitle: 'Friendly reminder',
      ignoreContent:
        "You have chosen to 'ignore plan change alerts'. If you want to save the plan after it has been changed, you can do so by selecting the search plan and clicking save. If you want to turn on 'plan change alerts' again, you can do this by clicking the bell on the right side of the search plan list.",
      closeIgnore: 'Close reminder',
      keepIgnore: 'Keep reminder',
    },
    title: {
      queryPlan: 'Query Plan',
      queryCondition: 'Query Condition',
      save: 'Save',
      saveAs: 'Save As',
      ignore: 'Ignore',
      openPlanChange: 'Open plan change alert',
      closePlanChange: 'Close plan change alert',
      defautSort: 'Default sort',
      aseSwort: 'Sort by name ascending',
      descSort: 'Sort by name descending',
      searchPlaceholder: 'Please enter plan name',
      setDefault: 'Set as default',
      cancelDefault: 'Cancel default',
      moveUp: 'Move up',
      moveDown: 'Move down',
      top: 'Top',
      del: 'Delete',
      default: 'Default',
      planList: 'Plan List',
      //收起 翻译
      collapse: 'Collapse',
      //展开 翻译
      expand: 'Expand',
      //已选条件 翻译
      selectedFilter: 'Selected Filters',
      //请输入 翻译
      pleaseEnter: 'Please enter',
      edit: 'edit',
      currentPlan: 'Current scheme:',
      myPlan: 'My plan',
      create: 'create',
      createPlan: 'create plan',
    },
    dialog: {
      shareDetail: 'Share details',
      shareBy: 'Shared by',
      shareTo: 'Shared to',
      share: 'Share',
      know: 'Got it',
      planName: 'Plan name',
      choiseShare: 'Please select the share recipient',
      userName: 'Name',
      department: 'Department',
      shareWarning:
        'The plan cannot be shared with yourself, the data has been filtered',
      reName: 'Rename',
      planNameLengthCheck: 'The plan name can have a maximum of 11 characters',
      planIsExist: 'The plan already exists',
      planSaveAs: 'Save plan as',
      planType: 'Plan type',
      publicPlan: 'Public plan',
      previtePlan: 'Private plan',
      defaultPlan: 'Default plan',
      deletePlan: 'Are you sure you want to delete this plan?',
      public: 'Pu',
      previte: 'Pr',
      planByShare: 'Sh',
      planToShare: 'S',
      cancelTop: 'Cancel top',
      topPlan: 'Top',
    },
    subWarning: {
      warnName: '_Subscribing alert',
      saveSuccess: 'Save successful',
      subWarningName: 'Subscription name',
      functionName: 'Function name',
      WarnSubConditionOptions: [
        'When the data count is greater than 0',
        'When the data count is less than 0',
        'Custom',
      ],
      subCondition: 'Subscription condition',
      choise: 'Please choose',
      dataNum: 'Data count',
      subRate: 'Subscription rate',
      subRateIsTemp: 'Subscription rate does not exist',
      order: 'Order',
      day: 'Day',
      hour: 'Hour',
      operate: 'Operate',
      getSubWarningFail:
        'Failed to get subscription information, please contact the plan administrator',
      getSubWarningFailToRety:
        'Failed to get subscription information, please re-subscribe',
      notice: 'Notification scope',
      noticeTemplate: 'Notification content template',
      noticeContent: 'Notification content',
      tokenPlaceholder: 'Please enter Token',
      secretPlaceholder: 'Please enter Secret',
      notifyPerson: 'Notify and @person',
      cancelSubWarning: 'Cancel subscription',
      viewSubWarning: 'View subscription',
      subWarning: 'Subscribe to plan',
      stepInfo: [
        'Basic information',
        'Subscription information',
        'Notification information',
      ],
      prevStep: 'Previous step',
      nextStep: 'Next step',
      subWarningNameisNotEmpt: 'Subscription name cannot be empty',
      isInt: 'The expected value of the data count must be a positive integer',
      rateIsNotEmpt: 'Subscription rate cannot be empty',
      tokenIsNotEmpt: 'Token cannot be empty',
      secrtIsNotEmpt: 'Secret cannot be empty',
      notifyPersonIsNotEmpt:
        'Notify and @person, please specify the personnel field to be @',
      subSuccess: 'Subscription successful',
      subFail: 'Subscription failed, failure reason: {0}',
      cancelSubSuceess: 'Subscription has been canceled',
      cancelSubFail: 'Failed to cancel subscription, failure reason: {0}',
      cancelSub: 'Cancel subscription',
    },
    mobile: {
      run: 'Run',
      clear: 'Clear',
      reset: 'Reset',
      saveTargetPlan: 'Do you want to save the current plan?',
      advanceFilter: 'Advanced filter',
      filterPlan: 'Filter plan',
      filterCondition: 'Filter condition',
      planManager: 'Filter plan management',
      more: 'More',
      saveAndRun: 'Save and run',
      contains: 'Contains',
      notContains: 'Does not contain',
      startsWith: 'Starts with',
      endsWith: 'Ends with',
      equal: 'Equal to',
      notEqual: 'Not equal to',
      lessThan: 'Less than',
      greaterThan: 'Greater than',
      lessThanOrEqual: 'Less than or equal to',
      greaterThanOrEqual: 'Greater than or equal to',
      between: 'Between',
      in: 'In',
      notin: 'Not in',
      and: 'When',
      _and: 'And',
      _or: 'Or',
      filterRelationCheck: '【{0}】Condition must exist, please set',
      other: 'Other',
      complexPlaceholder: 'View complex mode only',
    },
  },
  stepper: {
    previous: 'Previous',
    next: 'Next',
    done: 'Done',
  },
  importExport: {
    more: '更多',
  },
  portal: {
    portalSetting: 'Component Configuration',
    title: 'Title',
    showRefresh: 'Show Refresh Button',
    isAutoRefresh: 'Is Auto Refresh',
    refreshInterval: 'Refresh Interval (s)',
    operateSetting: 'Parameter Configuration',
    refreshIntervalWarning:
      'Refresh Interval Must Not Be Empty or Zero or less than 0',
    topic: 'Business Topic',
    choiceMetrics: 'choiceMetrics',
    switchingCommonScheme: 'switchingCommonScheme',
    switchingPreviteScheme: 'switchingPreviteScheme',
    savePortalInstance: 'savePortalInstance',
    addMetricWidget: 'addMetricWidget',
    addPortalWidgets: 'addPortalWidgets',
    reset: 'reset',
    delete: 'delete',
    placeholder: 'Please enter a business topic name',
    deletePortalet: 'Are you sure to delete the portal widget?',
  },
  editorV2: {
    'default': 'Default',
    'delete': 'Delete',
    'confirm': 'Confirm',
    'cancel': 'Cancel',
    'resize': 'Resize',
    'undo': 'Undo',
    'redo': 'Redo',
    'brush': 'Format Brush',
    'container': 'Highlight Block',
    'eraser': 'Clear Formatting',
    'toc': 'Table of contents',
    'heading': 'Body/Heading',
    'font-family': 'Font Family',
    'font-size': 'Font Size',
    'bold': 'Bold',
    'italic': 'Italic',
    'underline': 'Underline',
    'strike': 'Strikethrough',
    'link': 'Link',
    'source-code': 'Source Code',
    'code': 'Inline Code',
    'subscript': 'Subscript',
    'superscript': 'Superscript',
    'hr': 'Horizontal Rule',
    'todo': 'Todo List',
    'emoji': 'Emoji',
    'highlight': 'Highlight',
    'font-color': 'Font Color',
    'align': 'Align',
    'line-height': 'Line Height',
    'bullet-list': 'Bullet List',
    'ordered-list': 'Ordered List',
    'indent-decrease': 'Decrease Indent',
    'indent-increase': 'Increase Indent',
    'break': 'Line Break',
    'image': 'Image',
    'video': 'Video',
    'attachment': 'Attachment',
    'quote': 'Quote',
    'code-block': 'Code Block',
    'table': 'Table',
    'printer': 'Print',
    'fullscreen': 'Fullscreen',
    'ai': 'Artificial Intelligence',
    'paragraph': 'Paragraph',
    'h1': 'Heading 1',
    'h2': 'Heading 2',
    'h3': 'Heading 3',
    'h4': 'Heading 4',
    'h5': 'Heading 5',
    'h6': 'Heading 6',
    'standardColors': 'Standard Colors',
    'historyColors': 'Recently Used',
    'insertTable': 'Insert Table',
    'row': 'Row',
    'column': 'Column',
    'align-left': 'Align Left',
    'align-right': 'Align Right',
    'align-center': 'Align Center',
    'align-justify': 'Justify',
    'insert-column-left': 'Insert Column Left',
    'insert-column-right': 'Insert Column Right',
    'insert-row-top': 'Insert Row Top',
    'insert-row-bottom': 'Insert Row Bottom',
    'delete-column': 'Delete Column',
    'delete-row': 'Delete Row',
    'merge-cells-horizontal': 'Merge Cells Horizontally',
    'merge-cells-vertical': 'Merge Cells Vertically',
    'split-cells-horizontal': 'Split Cells Horizontally',
    'split-cells-vertical': 'Split Cells Vertically',
    'delete-table': 'Delete Table',
    'edit-link': 'Edit Link',
    'unlink': 'Unlink',
    'visit-link': 'Visit Link',
    'link-address': 'Link Address',
    'link-open-type': 'Link Open Type',
    'link-open-blank': 'New Window',
    'default-font-size': 'Default Font Size',
    'default-font-family': 'Default Font Family',
    'codeblock-ai-auto-comment': 'Auto Comment',
    'codeblock-ai-code-explain': 'Code Explanation',
    'placeholder-tell-ai-what-to-do-next':
      'Tell AI what to do next, e.g., Help me translate to English',
    'tip-you-can-enter-text-above-or-select-the-operation-below':
      'Tip: You can enter text above or select the operation below',
    'you-can-do-the-following': 'You can do the following:',
    'improve-writing': 'Improve Writing',
    'check-spelling-and-grammar': 'Check Spelling and Grammar',
    'make-shorter': 'Make Shorter',
    'make-longer': 'Make Longer',
    'translate': 'Translate',
    'summarize': 'Summarize',
    'ai-append': 'Append',
    'ai-replace': 'Replace',
    'ai-cancel': 'Cancel',
    'ai-continuation': 'AI Continuation',
    'ai-expansion': 'AI Make Longer',
    'ai-optimization': 'AI Optimization',
    'ai-proofreading': 'AI Proofreading',
    'ai-translation': 'AI Translation',
    'ai-more': 'More...',
    'comment': 'Comment',
    'comment-placeholder': 'Enter comment content',
    'pdf-export': 'Export to PDF',
    'word-export': 'Export to Word',
    'word-import': 'Import from Word',
    'refrenceIsDelete': 'Reference has been deleted',
    'positionToOrgin': 'Position to origin',
    'refrence': 'Reference',
    'beforeHour': 'Hours ago',
    'beforeSecond': 'Seconds ago',
    'beforeMinute': 'Minutes ago',
    'beforeDay': 'Days ago',
    'allComment': 'All comments',
    'currentComment': 'Current comments',
    'showComment': 'Show or hide annotations',
    ///find and replace
    'find': 'Find',
    'replace': 'Replace',
    'find-replace': 'Find and replace',
    'search-placeholder': 'Please input search content',
    'replace-placeholder': 'Please input replace content',
    'match-case': 'Match case',
    'find-previous': 'Previous',
    'find-next': 'Next',
    'replace-all': 'Replace all',
    //
    'outline': 'Outline',
    'editor-placeholder':
      'Type "/" to bring up quick commands, "Ctrl+/" for AI',
    'tip-click-to-add-references': 'Add reference documents',
    //
    'beginToCreate': 'Start Creation',
    'cancelCreation': 'Cancel Creation',
    'aiFailed': 'Creation generation failed, please try again later',
  },
});
